package com.yq.design.responsibilityOwner;

/**
 * @ClassName Client
 * @Description TODO
 * @Author yaoqiang
 * @Date 2021/8/25 16:59
 * @Version 1.0
 */
public class Client {
    public static void main(String[] args) {
        PurchaseRequest p=new PurchaseRequest(9);

        DepartmentHandlerImpl d = new DepartmentHandlerImpl();
        CollegeHandlerImpl c=new CollegeHandlerImpl();

        d.setNextHandler(c);
        c.setNextHandler(d);
        c.processHandler(p);
//

    }
}
